package com.wz.project.system.employee.mapper;

import com.wz.project.system.employee.domain.EmployeePost;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface EmployeePostMapper {

    /**
     * 通过用户ID删除用户和岗位关联
     *
     * @param employeeId 用户ID
     * @return 结果
     */
    public int deleteEmployeePostByEmployeeId(Integer employeeId);

    /**
     * 通过岗位ID查询岗位使用数量
     *
     * @param postId 岗位ID
     * @return 结果
     */
    public int countEmployeePostById(Long postId);

    /**
     * 批量删除用户和岗位关联
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteEmployeePost(Long[] ids);

    /**
     * 批量新增用户岗位信息
     *
     * @param EmployeePostList 用户角色列表
     * @return 结果
     */
    public int batchEmployeePost(List<EmployeePost> EmployeePostList);


    List<Long> selectPostIdByEmployeeId(@Param("empId") Integer employeeId);
}
